﻿<UserControl x:Class="EQual.MainModule.Documents.DocumentsDetailViews.DocumentsDetailedControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="clr-namespace:WpfApplicationExperimental;assembly=WpfApplicationExperimental"
    xmlns:Models="clr-namespace:EQual.MainModule" 
    xmlns:loc="clr-namespace:RootLibrary.WPF.Localization;assembly=LocalizeExtension"
    Height="152" Width="450">
    <UserControl.Resources >
 
        <ObjectDataProvider x:Key="DocumentsTypes" ObjectType="{x:Type Models:DocumentsProvider}" MethodName="GetDocumentTypes" />
    </UserControl.Resources>
    <Grid Height="150">
        <TextBox Text="{Binding Path=Id}" Height="23" HorizontalAlignment="Left" Margin="12,31,0,0" Name="textBox1" VerticalAlignment="Top" Width="120" />
        <TextBox Text="{Binding Path=Title}" Height="23" Margin="162,31,168,0" Name="textBox2" VerticalAlignment="Top" />
      <!---->
        <ComboBox                          SelectedValue="{Binding Type}"         
                                           SelectedValuePath="id"
                                           DisplayMemberPath="name"
                                           ItemsSource="{Binding Source={StaticResource DocumentsTypes}}"
            Height="23" HorizontalAlignment="Right" Margin="0,31,25,0" Name="comboBox1" VerticalAlignment="Top" Width="120" />
        <controls:AttachmentControl Attachment="{Binding Path=Attachment1}" HorizontalAlignment="Left" Margin="12,0,0,39" Width="Auto" Height="24" VerticalAlignment="Bottom"></controls:AttachmentControl>
        <controls:FileIconControl OnExitingDocument="FileIconControl_OnExitingDocument"  Attachment="{Binding Path=Attachment1}" HorizontalAlignment="Left" Margin="107,0,0,29" VerticalAlignment="Bottom" Height="35" Width="33"></controls:FileIconControl>
        <Label Height="28" Content="{Binding Path=Attachment1.Name  , StringFormat=d}" HorizontalAlignment="Left" Margin="87,0,0,5" Width="Auto" VerticalAlignment="Bottom"></Label>
        <Label Height="28" HorizontalAlignment="Left" Margin="12,0,0,0" Name="ΚωδικόςΕγγράφου" VerticalAlignment="Top" Width="120" Content="{LocText EQualApplication:ResTexts:DocumentId}" > </Label>
        <Label Height="28" Margin="162,0,168,0" Name="Τίτλος" VerticalAlignment="Top" Content="{LocText EQualApplication:ResTexts:DocumentTitle}"> </Label>
        <Label Height="28" HorizontalAlignment="Right" Margin="0,0,25,0" Name="Τύπος" VerticalAlignment="Top" Width="120" Content="{LocText EQualApplication:ResTexts:DocumentType}"></Label>
        <Label HorizontalAlignment="Left" Margin="12,60,0,64" Name="Επισυναψή" Width="120" Content="{LocText EQualApplication:ResTexts:DocumentAttachment}"> </Label>
    
    </Grid>
</UserControl>
